project( staticLibTest )

#aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} src)
set( src
    ${CMAKE_CURRENT_SOURCE_DIR}/staticLibTest.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/staticLibTest.h
)

set (headfile )

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/../shareLibTest2
)

set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../build)
#STATIC是生成静态库，SHARED是生成动态库
add_library ( ${PROJECT_NAME} STATIC ${src})

target_link_libraries(
    ${PROJECT_NAME}
    shareLibTest2
)

add_definitions(-D OutLib_Export) #宏定义添加


